// ServerManager.h: interface for the CServerManager class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_SERVERMANAGER_H__24C4C598_DCA0_4CD2_B012_5D0459945B0D__INCLUDED_)
#define AFX_SERVERMANAGER_H__24C4C598_DCA0_4CD2_B012_5D0459945B0D__INCLUDED_

#include "CommonData.h"

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CServerManager  
{
public:
	CServerManager();
	virtual ~CServerManager();

	int InitAll();
	int Add(stServerNode server);
	int GetCount();
	stServerNode GetItem(int i);

private:
	stServerNode m_servers[MAX_SERVER_NUMBER];
	int m_number;

};


extern CServerManager g_serverMan;

#endif // !defined(AFX_SERVERMANAGER_H__24C4C598_DCA0_4CD2_B012_5D0459945B0D__INCLUDED_)
